package net.lanelife.casino.cms.web.controller;

import net.lanelife.casino.caipiao.dto.admin.PlayMethodRuleCreateDTO;
import net.lanelife.casino.caipiao.dto.admin.PlayMethodRuleDTO;
import net.lanelife.casino.caipiao.dto.admin.PlayMethodRuleTable;
import net.lanelife.casino.caipiao.dto.admin.PlayMethodRuleUpdateDTO;
import net.lanelife.casino.caipiao.entity.PlayMethodRule;
import net.lanelife.casino.caipiao.service.api.IPlayMethodRuleService;
import net.lanelife.casino.cms.web.controller.support.CRUDController;
import net.lanelife.casino.common.service.support.IGenericService;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping(value = PlayMethodRuleController.PATH)
public class PlayMethodRuleController extends CRUDController<PlayMethodRule, Integer, PlayMethodRuleDTO, PlayMethodRuleCreateDTO, PlayMethodRuleUpdateDTO, PlayMethodRuleTable<PlayMethodRuleDTO>> {
	
	public static final String PATH = "/play-method-rule";
	
	public PlayMethodRuleController() {
		super(PATH);
	}

	@Autowired
	private IPlayMethodRuleService playMethodRuleService;
	
	@Override
	protected IGenericService<PlayMethodRule, Integer> getService() {
		return playMethodRuleService;
	}

}
